import datetime

class Student(object):
    """Student doc"""
    def __init__(self, name, age, year, origin):
        super(Student, self).__init__()
        self.name = name
        self.age = age
        self.year = year
        self.origin = origin

    def __str__(self):
        return "Name: " + self.name + "\nAge: " + str(self.age)

    def years_to_graduate(self):
        return datetime.date.today().year - self.year

s1 = Student("Adam", 22, 2015, 'Hunan')